package com.hcbd.tdwt.base.hcbd;

import android.util.Log;

import com.pangu.bdsdk2021.entity.extensionterminal.CCPRSInfo;
import com.pangu.bdsdk2021.terminal.listener.TerminalListener2_1;

import org.greenrobot.eventbus.EventBus;

public class CCPRSHcbdInfo extends CCPRSInfo {
    public String protocol_type;

    public void build2_1(String instruc, TerminalListener2_1 listener2_1) {
        String[] values = instruc.split(",", -1);
        if (values.length >= 4) {
            this.receiving_address = values[1];
            this.reserved_domain = values[2];
            this.acquisition_frequency = values[3];
            this.messages_number = values[4];
            this.protocol_type=values[5];
            Log.e("CCPRSHcbdInfo:", "参数设置");
            //listener2_1.onBDPRXInfo(this);
            EventBus.getDefault().post(this);
        }
    }

}
